package org.chen.common;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

@TableName("t_feedback_ai")
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Feedback extends Model<Feedback> {

    private static final long serialVersionUID = 121321L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    @TableField("feedbackType")
    private String feedbackType;
    @TableField("feedbackContent")
    private String feedbackContent;
    @TableField("userName")
    public String userName;


    public Feedback(String feedbackType, String feedbackContent, String userName) {
        this.feedbackType = feedbackType;
        this.feedbackContent = feedbackContent;
        this.userName = userName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getFeedbackType() {
        return feedbackType;
    }

    public void setFeedbackType(String feedbackType) {
        this.feedbackType = feedbackType;
    }

    public String getFeedbackContent() {
        return feedbackContent;
    }

    public void setFeedbackContent(String feedbackContent) {
        this.feedbackContent = feedbackContent;
    }

    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
